package com.yzf.demo.demo.DesignPattren.SingletonPattern.enumsingleton;

/**
 * Created by 于占峰 on 2020/2/27/027.
 * 枚举注册单例模式
 */
public enum EnumSingleton {
    INSTANCE;
    private Object data;

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public static EnumSingleton getInstance() {
        return INSTANCE;
    }
}
